#ifndef MAINCSV_H
#define MAINCSV_H

#include <QObject>
#include <QFile>
#include <QStandardItemModel>


class MainCSV
{
public:
    MainCSV();
    bool SaveCSVFile(QString filePath, QStandardItemModel *standItemModel);
    QList<QList<QString> > ReadCSVFile(const QString &filePath);
    void ReadCSVFile(const QString &filePath, QStandardItemModel *standItemModel);
    void UpdateCache(QStandardItemModel *standItemModel);
    bool SaveCache(QStandardItemModel *standItemModel);
private:
    QString tempPath, tempFile;       // 临时文件路径和文件
};

#endif // MAINCSV_H
